package zuo.from0516.real;

import java.math.BigDecimal;

public class Code01_day1008 {
    public static void main(String[] args) {
        int[] arr = new int[]{3,2,1,0,4};
        BigDecimal sumReconciliationAmt = new BigDecimal("13147717.59").add(new BigDecimal("4308465.91"));
        BigDecimal sumReconciliationNoTaxAmt = new BigDecimal("11634550.09").add(new BigDecimal("3812801.69"));
        BigDecimal sumReconciliationTax = new BigDecimal("1513167.5").add(new BigDecimal("495664.22"));
        System.out.println(sumReconciliationAmt + "," + sumReconciliationNoTaxAmt + "," + sumReconciliationTax);


    }

    public static  boolean canJump(int[] nums) {
        if(nums.length <= 1){
            return true;
        }
        int most =0;
        for(int i=0;i<nums.length-1;i++){
            if(most < i+nums[i]){
                most = i+nums[i];
            }
            if(most >= nums[nums.length-1]){
                return true;
            }
        }
        return false;
    }

    
}
